package a2_p04_ak_fh;


import java.util.ArrayList;
import java.util.List;

import org.jgraph.graph.DefaultEdge;
import org.jgrapht.Graph;
import org.jgrapht.WeightedGraph;
import org.jgrapht.graph.DefaultWeightedEdge;


public class Aufgabe2 {
	

	public static void main(String [] args) {
		IOHelper IOHelper = new IOHelper();

		System.out.println("###### ---- GRAPH 1 ----######");
		List<AttVertex> vertexlist = new ArrayList<AttVertex>();
		

		WeightedGraph<AttVertex, DefaultWeightedEdge> graph = IOHelper.readGraphFile("graph3.gka");
		

		vertexlist = Astern.CalcA(graph, "Husum", "Hamburg");
		

		GraphVis.startvis(graph,1, vertexlist);
		
		vertexlist = Dijkstra.CalcDijkstra(graph, "Husum", "Hamburg",true);
		

		GraphVis.startvis(graph,1, vertexlist);

		
		
//		System.out.println("###### ---- GRAPH 2 ----######");
//		Graph<String, DefaultWeightedEdge> graph2 = IOHelper.readGraphFile("graph2.gka");
//		//GraphVis.startvis(graph2,1);
//
//		System.out.println("###### ---- GRAPH 3 ----######");
//		Graph<String, DefaultWeightedEdge> graph3 = IOHelper.readGraphFile("graph3.gka");
//		//GraphVis.startvis(graph2,1);
		
		

		/*System.out.println(graph.toString());
		
		IOHelper.writeGraphFile(graph, "/home/fabian/EclipseWorkspace/gka_wise12/test.gka");*/
	}


}
